<?php
$concessions = $this->concessions;
$parameters = $this->parameters;
$baseUrl = $this->base_url;
if ($parameters['category'] == '1'):
?>
    <dl>
        <dt>
            <?php
                for($i=0; $i < $this->parameters->getEndNameIndex(); $i++):
                    if($this->parameters->getImageCount() && $i<$this->parameters->getEndImageIndex()):
            ?>
                        <a href="<?php echo $this->getUrl(array('id'=>$concessions[$i]->getId()), 'detail', 'content', 'concessions')?>">
                            <img src="<?php echo $baseUrl.substr($concessions[$i]->getFirstPicture(), 1) ?>"
                             width="<?php echo $this->parameters->getImageWidth()?>"
                             height="<?php echo $this->parameters->getImageHeight() ?>"/>
                        </a>
        </dt>
                    <?php endif; ?>
              <dd><a href="<?php echo $this->getUrl(array('id'=>$concessions[$i]['id']), 'detail', 'content', 'concessions')?>"><?php echo $concessions[$i]['name'] ?></a>
              <?php if ($concessions[$i]['is_hot']):?><img src="<?php echo $this->pub_url ?>skin/stable/frontend/default/pic/hot.gif" /><?php endif;?>
              <?php if ($concessions[$i]['is_new']):?><img src="<?php echo $this->pub_url ?>skin/stable/frontend/default/pic/new.gif" /><?php endif;?></dd>

            <?php endfor?>
    </dl>
        
<?php endif; ?>
<?php if ($parameters['category'] == '2'):?>
            <dl>
                <?php
                for($i=0; $i < $this->parameters->getEndNameIndex(); $i++):
                    if($this->parameters->getImageCount() && $i<$this->parameters->getEndImageIndex()):
                ?>
                <dt><a href="<?php echo $this->getUrl(array('id'=>$concessions[$i]->getId()), 'detail', 'content', 'concessions')?>">
                            <img src="<?php echo $baseUrl.substr($concessions[$i]->getFirstPicture(), 1) ?>"
                             width="<?php echo $this->parameters->getImageWidth()?>"
                             height="<?php echo $this->parameters->getImageHeight() ?>"/>
                    </a></dt>
                <?php endif;?>
                        <dd>·<a href="<?php echo $this->getUrl(array('id'=>$concessions[$i]['id']), 'detail', 'content', 'concessions')?>"><?php echo $concessions[$i]['name'] ?></a>
                        <?php if ($concessions[$i]['is_hot']):?><img src="<?php echo $this->pub_url ?>skin/stable/frontend/default/pic/hot.gif" /><?php endif;?>
                        <?php if ($concessions[$i]['is_new']):?><img src="<?php echo $this->pub_url ?>skin/stable/frontend/default/pic/new.gif" /><?php endif;?></dd>
             
                <?php endfor;?>
            </dl>
<?php endif;?>

